package cn.houseProperty.contoller;

import cn.entity.Status;
import cn.houseProperty.service.impl.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/admin/project")
public class ProjectContoller {

    @Autowired
    private ProjectService projectService;
    @ResponseBody
    @GetMapping("/getProject")
    public Status getBunkByRid(){
        Status status=new Status();
        status.setFlag(true);
        status.setData(projectService.selectAll());
        return status;
    }

}
